﻿using Red.Core;

namespace Red.Controls.ViewModels
{
    public class CommandWrapper
    {
        public string Name { get; private set; }
        public RedCommand Command { get; private set; }
        public object Parameter { get; private set; }

        public CommandWrapper( RedCommand command, object parameter = null )
        {
            Name = command.Text;
            Command = command;
            Parameter = parameter;
        }

        public CommandWrapper( string name, RedCommand command, object parameter = null )
        {
            Name = name;
            Command = command;
            Parameter = parameter;
        }
    }
}
